Skip to main content
Version: 2.x.x

CallbackParameters


import { CallbackParameters } from "@hyper-fetch/react"

Description

Defined in helpers/use-command-events/use-command-events.types.ts:86

Preview

type CallbackParameters<Command,ResponseType> = {
command: Command;
details: CommandResponseDetails;
response: ResponseType;
}

Structure

{
command: Command;
details: {
isCanceled: boolean;
isFailed: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
};
response: ResponseType;
}